/**
 * @Company:中享思途   
 * @Title:TaskJobServiceImpl.java 
 * @Author:IL Clown   
 * @Date:2020年9月1日 下午2:00:58     
 */
package com.situ.shopsystem.test;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/** 
 * @ClassName:TaskJobServiceImpl 
 * @Description:(这里用一句话描述这个类的作用)  
 */
@Service
@EnableScheduling//启动Schedul
public class TaskJobServiceImpl implements TaskJobService {
	private static Logger LOG = LoggerFactory.getLogger(TaskJobServiceImpl.class);
	private static SimpleDateFormat FORMATER = new SimpleDateFormat("yyyy-MM-dd HH:MM:ss");

	/** 
	 * @Title: restCountJob 
	 * @Description: restCountJob
	 */
	@Override
	@Scheduled(cron="0 26 15 * * *")
	public void restCountJob() {
		LOG.debug("这是系统计数重置的任务" + FORMATER.format(new Date()));

	}

}
